#!/bin/sh
#启动tomcat1
cd /web/tomcat/apache-tomcat-01/bin
./startup.sh
cd /web/tomcat/apache-tomcat-02/bin
./startup.sh
cd /web/tomcat/apache-tomcat-03/bin
./startup.sh
echo $(date)  启动tomcat
#启动nginx
cd /usr/local/nginx/sbin
./nginx
echo $(date)  启动nginx
#启动redis
 cd /web/redis/redis-2.8.18/
./src/redis-server redis0.conf 
./src/redis-server redis1.conf 
./src/redis-server redis2.conf 
./src/redis-server redis3.conf 

./src/redis-sentinel sentinel0.conf
./src/redis-sentinel sentinel1.conf
./src/redis-sentinel sentinel2.conf
./src/redis-sentinel sentinel3.conf

echo $(date)  启动redis


